package aufgabe2.worker;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.ArrayList;

import aufagabe2.master.GUIdata;

/*
 * Class which send the number to factorize
 */


public class CalculateMessage implements Serializable {
	
	private static final long serialVersionUID = 840244832287440949L;
	private BigInteger number;
	private ArrayList<GUIdata> workersdata;
	private int calculId;
	
	public CalculateMessage( BigInteger number, ArrayList<GUIdata> workersdata, int calculId) {
		this.number = number;
		this.workersdata=workersdata;
		this.calculId = calculId;
	}

	public BigInteger getNumber() {
		return number;
	}

	/**
	 * @return the workersdata
	 */
	public ArrayList<GUIdata> getWorkersdata() {
		return workersdata;
	}

	/**
	 * @param workersdata the workersdata to set
	 */
	public void setWorkersdata(ArrayList<GUIdata> workersdata) {
		this.workersdata = workersdata;
	}

	/**
	 * @param number the number to set
	 */
	public void setNumber(BigInteger number) {
		this.number = number;
	}

	/**
	 * @return the calculId
	 */
	public int getCalculId() {
		return calculId;
	}

	/**
	 * @param calculId the calculId to set
	 */
	public void setCalculId(int calculId) {
		this.calculId = calculId;
	}
	
}